﻿<Window x:Class="DDLStorageLinks.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="DDL Storage Link Extractor" Height="350" Width="525" 
        Icon="ddlstorage.ico"
        WindowStartupLocation="CenterScreen" Loaded="Window_Loaded_1">
    
    <Grid x:Name="MainGrid" Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel VerticalAlignment="Top">
            <TextBlock Text="Inserire l'URL della cartella DDLStorage:" FontFamily="Tahoma" Margin="0,0,0,5"></TextBlock>
            <Grid VerticalAlignment="Center">
                <Grid.RowDefinitions>
                    <RowDefinition></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" x:Name="uriTextBox" Text="{Binding FolderUri, UpdateSourceTrigger=PropertyChanged}" Margin="0,0,5,0" FontFamily="Tahoma"></TextBox>
                <Button Grid.Column="1" Margin="5,0,0,0" Padding="5,1" Command="{Binding GetCommand}" FontFamily="Tahoma">Get</Button>
            </Grid>
        </StackPanel>
        <DockPanel Grid.Row="1" Margin="0,5">
            <ListView x:Name="linkListView" ItemsSource="{Binding Links, UpdateSourceTrigger=PropertyChanged}" FontFamily="Tahoma">
                <ListView.View>
                    <GridView>
                        <GridView.ColumnHeaderContainerStyle>
                            <Style>
                                <Setter Property="FrameworkElement.Visibility" Value="Collapsed"/>
                            </Style>
                        </GridView.ColumnHeaderContainerStyle>
                        <GridViewColumn/>
                    </GridView>
                </ListView.View>
            </ListView>
        </DockPanel>
        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
            <Button Content="Cancel"  Command="{Binding CancelCommand}" FontFamily="Tahoma" Margin="0,0,5,0" Padding="5,1"/>
            <Button Content="Copy"  Command="{Binding CopyCommand}" FontFamily="Tahoma" Padding="5,1"/>
        </StackPanel>
    </Grid>
    
</Window>
